<select name="cha_sta_id" <?=$estilo;?>>
    
    <option value="">Status</option>

    <?php
    $sql_statuschamado = "SELECT * FROM cha_status WHERE sta_id='1' ORDER BY cha_sta_id";
    $res_statuschamado = sql($sql_statuschamado);
    while($linha_statuschamado = mysql_fetch_array($res_statuschamado)){
    ?>

    <option value="<?=$linha_statuschamado['cha_sta_id'];?>" <?php if($linha_statuschamado['cha_sta_id'] == $cha_sta_id) { echo "selected"; } ?>><?=$linha_statuschamado['cha_sta_nome'];?></option>

    <?php } ?>

</select>